﻿<%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true" CodeFile="TaoTaiKhoan.aspx.cs" Inherits="QuanTri_TaoTaiKhoan" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" Runat="Server">
<link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
    <div style="width: 100%; height: auto;">
        &nbsp;<div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                  Tạo tài khoản người dùng
                </div>
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
                <div>
                    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1">
                      <asp:TabPanel ID="tab1" HeaderText="Tài khoản Admin" runat="server">
                        <ContentTemplate>
                          <div class="personal_style_form">
                              <span class="personal_laber">Tên người dùng</span>
                              <asp:TextBox ID="txtAdmin" runat="server" Width="240px" Enabled="false"></asp:TextBox>
                              <asp:Label ID="lblAdmin" runat="server" Visible="False"></asp:Label>
                           </div>
                            <div class="personal_style_form">
                              <span class="personal_laber">Tên đăng nhập</span>
                             <asp:TextBox ID="txtTenDangNhap" Width="240px" runat="server"></asp:TextBox>
                           </div>
                            <div class="personal_style_form">
                              <span class="personal_laber">Mật khẩu</span>
                              <asp:TextBox ID="txtMatKhau" Width="240px" runat="server" TextMode="Password"></asp:TextBox>
                           </div>
                <div id="personalSubmit" class="personal_submit clearfix">
                    <asp:Button  ID="btnTao" Text="Tạo tài khoản" CssClass="button_150" 
                        runat="server" OnClick="btnTao_Click"
                        />&nbsp;&nbsp;
                        <asp:Button  ID="btnXoa" Text="Hủy" OnClick="btnXoa_Click" CssClass="button_150" runat="server"
                         />&nbsp;&nbsp;
                    <asp:Button ID="btnMoi" Text="Tạo Mới" OnClick="btnMoi_Click" CssClass="button_150" runat="server" 
                       />&nbsp;&nbsp;
                </div><br />
                   <div>
                    <asp:GridView ID="grvAdmin" runat="server" AutoGenerateColumns="False" Width="100%" OnSelectedIndexChanged="grvAdmin_SelectedIndexChanged"
                        ForeColor="#333333" 
                        AllowPaging="True" Height="28px" ShowFooter="True" 
                        >
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                <center>
                                    <%# Container.DataItemIndex + 1 %></center>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên người dùng">
                                <ItemTemplate>
                                <center>
                                    <asp:Label ID="lblMaAdmin" runat="server" Text='<%#Bind("MaAdmin") %>' Visible="false"></asp:Label>
                                     <%#Eval("TenAdmin") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên đăng nhập">
                                <ItemTemplate>
                                <center>
                                     <%#Eval("TenDangNhap") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField EditText="Chọn" HeaderText="Chọn" ShowSelectButton="True" >  
                                <ControlStyle Font-Underline="True" ForeColor="Blue" />
                            </asp:CommandField>
                        </Columns>
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" BorderColor="Blue"
                            Height="30px" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    </asp:GridView>
                </div>
                        </ContentTemplate>
                      </asp:TabPanel>
                       <asp:TabPanel ID="TabPanel1" HeaderText="Tài khoản giáo viên" runat="server">
                        <ContentTemplate><br />
                          <div class="personal_style_form">
                              <span class="personal_laber">Tên người dùng</span>
                              <asp:TextBox ID="txtTenGV" runat="server" Width="240px" Enabled="False"></asp:TextBox>
                              <asp:Label ID="lblMacb" runat="server" Visible="False"></asp:Label>
                           </div>
                            <div class="personal_style_form">
                              <span class="personal_laber">Mật khẩu</span>
                              <asp:TextBox ID="txtMK" Width="240px" runat="server" TextMode="Password"></asp:TextBox><br />
                              <asp:Label ID="lblThongBao" runat="server"></asp:Label>
                           </div>
                <div id="Div1" class="personal_submit clearfix">
                    <asp:Button  ID="btnTaoTaiKhoan" Text="Tạo tài khoản" CssClass="button_150" 
                        runat="server" onclick="btnTaoTaiKhoan_Click" 
                        />&nbsp;&nbsp;
                        <asp:Button  ID="btnHuy" Text="Hủy" CssClass="button_150" runat="server" onclick="btnHuy_Click"
                         />&nbsp;&nbsp;
                    <asp:Button ID="btnLamMoi" Text="Tạo Mới" CssClass="button_150" runat="server" onclick="btnLamMoi_Click" 
                       />&nbsp;&nbsp;
                </div><br />
                   <div>
                    <asp:GridView ID="grvGV" runat="server" AutoGenerateColumns="False" Width="100%"
                        ForeColor="#333333" 
                        AllowPaging="True" Height="28px" ShowFooter="True" onselectedindexchanged="grvGV_SelectedIndexChanged" 
                        >
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                <center>
                                    <%# Container.DataItemIndex + 1 %></center>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên người dùng">
                                <ItemTemplate>
                                <center>
                                    <asp:Label ID="lblMaGV" runat="server" Text='<%#Bind("MaCanBoGV") %>' Visible="false"></asp:Label>
                                     <%#Eval("TenCanBo") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField EditText="Chọn" HeaderText="Chọn" ShowSelectButton="True" >  
                                <ControlStyle Font-Underline="True" ForeColor="Blue" />
                            </asp:CommandField>
                        </Columns>
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" BorderColor="Blue"
                            Height="30px" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    </asp:GridView>
                </div>
                        </ContentTemplate>
                      </asp:TabPanel>
                    </asp:TabContainer>
                </div>
             </div>  
        </div> 
    </div>
</asp:Content>


